package org.git.movie.controller;


import com.alibaba.fastjson.JSONObject;
import org.git.movie.service.FfNavService;
import org.git.movie.util.BaseController;
import org.git.movie.util.BaseResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.git.movie.vo.*;
import java.util.List;

/**
 * <p>
 *  电影总类型表
 * </p>
 *
 * @author 嘻嘻
 * @since 2020-07-08
 */
@RestController
@RequestMapping("video/nav")
public class FfNavController extends BaseController {
    @Autowired
    FfNavService ffNavService;


    /**
     * 通过父类查询
     * @author 嘻嘻
     * @date 2020/7/13 0013 16:33
     * param ffNavRequestBody
     * @return org.git.movie.util.BaseResponse<org.git.movie.vo.FfNavVO>
     */
//    @PostMapping("list.do")
//    public BaseResponse<List<FfNavVO>> findParent(@RequestBody FfNavRequestBody ffNavRequestBody){
//        return ok(ffNavService.findParent(ffNavRequestBody.getNavPid()));
//    }

    @PostMapping("list.do")
    public BaseResponse<RepNavListDto> findParent(){
        RepNavListDto data = new RepNavListDto();
        List<FfNavVO> list = ffNavService.findAvailNavList();
        data.setList(list);
        return ok(data);
    }




}

